from selenium.webdriver.common.by import By
class MageOrganizateLocators:

    # 添加机构
    add_organizate = (By.XPATH, '//span[text()="添加机构"]')

    # 上级机构标签定位取值
    parent_label = (By.XPATH, '//label[text()="上级机构"]')

    # 机构全称
    organizate_name = (By.XPATH, '//input[@placeholder="请输入机构全称"]')

    # 错误提示信息
    error_tips = (By.XPATH, '//div[@class="el-form-item__error"]')

    # 暂无数据提示语
    null_tips = (By.XPATH, '//div[contains(@x-placement, "-start")]/p')

    # 查询按钮点击
    query_sub = (By.XPATH, '//span[text()="查询"]')

    # 机构类型-学校
    type = (By.XPATH, '//div[@role="radiogroup"]/label/span/span')

    # 地址下拉框
    address_box = (By.XPATH, '//i[@class="area-select-icon"]')

    # 地址下拉框省份
    box = (By.XPATH, '//div[@class="cascader-menu-list-wrap"]')

    # 陕西省
    province = (By.XPATH, '//div[@class="area-select large"]/div/span/ul/li[27]')

    # 西安市
    city = (By.XPATH, '//div[@class="area-select large"]/div/span/span/ul/li[1]')

    # 雁塔区
    area = (By.XPATH, '//div[@class="area-select large"]/div/span/span/span/ul/li[6]')

    # 详细地址输入框
    full_address = (By.XPATH, '//input[@placeholder="输入名称搜索"]')
    # 详细地址列表第一个
    first_area = (By.XPATH, '//ul[@role="listbox"]/li[1]/div')

    # 添加机构-确定按钮
    sure = (By.XPATH, '//div[@class="dialog-footer"]/button[2]/span')

    # 选择应用权限定位点击
    app_permission = (By.XPATH, '//span[text()="请选择应用 >>"]')

    # 应用中心
    app_center_option = (By.XPATH, '//div[@class="el-checkbox-group"]/div[1]/label/span[2]')

    # 应用列表确定按钮
    app_list_sure = (By.XPATH, '//div[@aria-label="应用列表"]/div[3]/span/button[2]/span')

    # 名称搜索框定位
    search_box = (By.XPATH, '//div[@aria-labelledby="tab-first"]/form/div[3]/div/div/input')

    # 列表第一个名称标签定位
    list_name1 = (By.XPATH, '//td[@class="el-table_1_column_2   el-table__cell"]/div/span/span[2]')

    # 列表第一个删除按钮定位
    first_list_delete = (By.XPATH, '//div[@id="pane-first"]/div/div[4]/div[2]/table/tbody/tr[1]//span[text()="删除"]')
    # 系统提示确定删除按钮
    sure_delete = (By.XPATH, '//div[@aria-label="系统提示"]/div/div[3]/button[2]/span')

    # 测试机构-002删除按钮定位
    delete_002 = (By.XPATH, '//div[@id="pane-first"]/div/div[4]//span[text()="测试机构-002"]/../../../../td[12]/div/button[3]/span')

    # 负责人
    responsible_person = (By.XPATH, '//input[@placeholder="请输入负责人搜索"]/../../div[1]/input')

    # 选择负责人第一个
    first_resperson = (By.XPATH, '//div[contains(@x-placement, "-start")]//li[1]/span')

    # 联系电话
    phone = (By.XPATH, '//input[@placeholder="请输入联系电话"]')

    # 排序
    sort = (By.XPATH, '//input[@aria-valuemax="Infinity"]')

    # 批量导入机构按钮
    batch_import_organization = (By.XPATH, '//span[text()="批量导入机构"]')

    # 导入功能input标签
    input_label = (By.XPATH, '//input[@class="el-upload__input"]')

    # 文件上传成功提示标签
    success_tips = (By.XPATH, '//div[@aria-label="批量添加"]//a[contains(text(), "机构信息导入")]')

    # 导入按钮
    import_button = (By.XPATH, '//span[text()="导入"]')

    # 导入结果标签
    result_tips = (By.XPATH, '//div[text()="导入结果:"]/..//span[contains(text(), "成功")]')

    # 批量导入确定按钮
    import_sure = (By.XPATH, '//div[@aria-label="批量添加"]/div[3]/span/button[2]/span')

    # 成长小学机构名称定位
    czxx = (By.XPATH, '//div[@id="pane-first"]/div/div[3]//span[text()="成长小学"]')
    # 橙子中学机构名称定位
    czzx = (By.XPATH, '//div[@id="pane-first"]/div/div[3]//span[text()="橙子中学"]')
    # 黄山小学机构名称定位
    hsxx = (By.XPATH, '//div[@id="pane-first"]/div/div[3]//span[text()="黄山小学"]')

    # 成长小学机构定位勾选
    czxx_box = (By.XPATH, '//div[@id="pane-first"]/div/div[3]//span[text()="成长小学"]/../../../../td[1]/div/label/span/span')

    # 橙子中学机构定位勾选
    czzx_box = (By.XPATH, '//div[@id="pane-first"]/div/div[3]//span[text()="橙子中学"]/../../../../td[1]/div/label/span/span')

    # 黄山小学机构定位勾选
    hsxx_box = (By.XPATH, '//div[@id="pane-first"]/div/div[3]//span[text()="黄山小学"]/../../../../td[1]/div/label/span/span')

    # 列表第四行名称标签定位
    list_name2 = (By.XPATH, '//div[@aria-labelledby="tab-first"]/div/div[3]/table/tbody/tr[2]/td[2]/div/span[3]/span[2]')

    # 列表第四行名称标签定位
    list_name3 = (By.XPATH, '//div[@aria-labelledby="tab-first"]/div/div[3]/table/tbody/tr[3]/td[2]/div/span[3]/span[2]')

    # 列表第四行名称标签定位
    list_name4 = (By.XPATH, '//div[@aria-labelledby="tab-first"]/div/div[3]/table/tbody/tr[4]/td[2]/div/span[3]/span[2]')

    # 列表第5行名称标签定位
    list_name5 = (By.XPATH, '//div[@aria-labelledby="tab-first"]/div/div[3]/table/tbody/tr[5]/td[2]/div/span[3]/span[2]')

    # 列表第6行名称标签定位
    list_name6 = (By.XPATH, '//div[@aria-labelledby="tab-first"]/div/div[3]/table/tbody/tr[6]/td[2]/div/span[3]/span[2]')

    # 列表第四行勾选框定位
    list_box2 = (By.XPATH, '//div[@aria-labelledby="tab-first"]/div/div[3]/table/tbody/tr[2]/td[1]/div/label/span/span')

    # 列表第四行勾选框定位
    list_box3 = (By.XPATH, '//div[@aria-labelledby="tab-first"]/div/div[3]/table/tbody/tr[3]/td[1]/div/label/span/span')

    # 列表第四行勾选框定位
    list_box4 = (By.XPATH, '//div[@aria-labelledby="tab-first"]/div/div[3]/table/tbody/tr[4]/td[1]/div/label/span/span')

    # 列表第五行勾选框定位
    list_box5 = (By.XPATH, '//div[@aria-labelledby="tab-first"]/div/div[3]/table/tbody/tr[5]/td[1]/div/label/span/span')

    # 列表第六行勾选框定位
    list_box6 = (By.XPATH, '//div[@aria-labelledby="tab-first"]/div/div[3]/table/tbody/tr[6]/td[1]/div/label/span/span')

    # 列表第六行勾选框定位
    list_box7 = (By.XPATH, '//div[@aria-labelledby="tab-first"]/div/div[3]/table/tbody/tr[7]/td[1]/div/label/span/span')

    # 列表第六行勾选框定位
    list_box8 = (By.XPATH, '//div[@aria-labelledby="tab-first"]/div/div[3]/table/tbody/tr[8]/td[1]/div/label/span/span')

    # 批量分配应用权限按钮
    batch_assign_button = (By.XPATH, '//span[text()="批量分配应用权限"]')

    # 批量分配应用权限页面-机构名称标签1
    label1 = (By.XPATH, '//div[@aria-label="分配应用"]/div[2]/form/div[1]/div/span[1]')

    # 批量分配应用权限页面-机构名称标签2
    label2 = (By.XPATH, '//div[@aria-label="分配应用"]/div[2]/form/div[1]/div/span[2]')

    # 批量分配应用权限页面-机构名称标签3
    label3 = (By.XPATH, '//div[@aria-label="分配应用"]/div[2]/form/div[1]/div/span[3]')

    # 系统提示信息定位
    system_tip = (By.XPATH, '//p[@class="el-message__content"]')

    # 批量分配应用权限页面-应用名称搜索框
    app_name = (By.XPATH, '//div[@aria-label="分配应用"]/div[2]/form/div[2]/div/div[2]/input')

    # 应用列表第一个应用勾选框
    list_app1 = (By.XPATH, '//div[@aria-label="分配应用"]/div[2]/form/div[3]/div/div/div[1]/label/span[2]')

    # 分配应用列表确定按钮
    assign_app_sure_button = (By.XPATH, '//div[@aria-label="分配应用"]/div[3]/span/button[2]/span')

    # 机构列表名称搜索框定位
    name_search = (By.XPATH, '//div[@id="pane-first"]/form/div[3]/div/div/input')

    # 机构列表第1个logo添加按钮
    add_logo = (By.XPATH, '//div[@id="pane-first"]/div/div[3]/table/tbody/tr[1]//span[text()="添加"]')

    # input上传标签
    input_logo = (By.XPATH, '//div[@aria-label="机构logo"]/div[2]/form/div/div/div/div/input')

    # 添加logo确定按钮
    add_logo_sure = (By.XPATH, '//div[@aria-label="机构logo"]/div[3]/span/button[2]/span')

    # 部门管理菜单
    department_menu = (By.XPATH, '//div[text()="部门管理"]')

    # 列表第1个添加部门标签
    add_department_label = (By.XPATH, '//div[@id="pane-first"]/div/div[3]/table/tbody/tr/td[6]/div/button')

    # 机构下拉框
    department_box = (By.XPATH, '//input[@placeholder="请选择机构"]')

    # 部门管理/机构下拉框-纳吉特第1号学校11
    drop_box1 = (By.XPATH, '//div[@class="search-tree exactAreaClassName"]//span[text()="纳吉特第1号学校11"]/../label/span/span')

    # 机构展开图标
    unfold_icon = (By.XPATH, '//div[@class="search-tree exactAreaClassName"]/div[2]/div[1]/div[1]/span')

    # 部门管理/机构下拉框-成长小学
    drop_box2 = (By.XPATH, '//div[@class="search-tree exactAreaClassName"]//span[text()="成长小学"]/../label/span/span')

    # 添加部门按钮
    add_department_button = (By.XPATH, '//div[@id="pane-second"]/form/div[4]/div/button/span')

    # 部门名称输入框
    department_name = (By.XPATH, '//input[@placeholder="请输入部门名称"]')

    # 部门名称提示信息
    department_name_tips = (By.XPATH, '//div[@class="el-form-item is-error is-required el-form-item--medium"]/div/div[2]')

    # 添加部门-标题
    title_add = (By.XPATH, '//div[@aria-label="添加"]/div/span')

    # 添加部门-负责人输入框
    principal_person = (By.XPATH, '//input[@placeholder="请输入负责人"]')

    # 负责人提示信息
    principal_person_tips = (By.XPATH, '//div[@class="el-form-item is-error el-form-item--medium"]/div/div[2]')

    # 添加部门-联系电话
    tel_phone = (By.XPATH, '//input[@placeholder="请输入联系电话"]')

    # 添加部门-排序
    add_department_sort = (By.XPATH, '//input[@aria-valuemax="Infinity"]')

    # 添加部门-确定按钮
    add_department_sure = (By.XPATH, '//div[@aria-label="添加"]/div[3]/div/button[2]/span')

    # 部门管理页面-列表第一个名称标签
    list_depname1 = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]/table/tbody/tr[1]/td[1]/div[1]/span[1]/span[2]')

    # 部门列表第一条删除按钮
    department_list1_delete_sub = (By.XPATH, '//div[@id="pane-second"]/div/div[4]/div[2]/table/tbody/tr[1]/td[5]/div/button[3]/span')


    # 系统提示-确定按钮
    system_sure = (By.XPATH, '//div[@aria-label="系统提示"]/div/div[3]/button[2]/span')

    # 部门管理菜单
    department_manage = (By.XPATH, '//div[text()="部门管理"]')

    # 部门管理页面-机构下拉框
    organizate_drop_down_box = (By.XPATH, '//input[@placeholder="请选择机构"]')

    # 机构名称搜索框
    organizate_name_search_box = (By.XPATH, '//input[@placeholder="请选择名称查询"]')

    # 智慧学校勾选框
    lab1 = (By.XPATH, '//span[@class="el-checkbox__input is-checked"]')

    # 橙子中学勾选框
    lab2 = (By.XPATH, '//div[@class="search-tree exactAreaClassName"]//span[text()="橙子中学"]/../label/span/span')

    # 列表第一个添加下级按钮
    add_subordinate = (By.XPATH, '//div[@id="pane-first"]/div/div[4]//span[text()="成长小学"]/../../../..//span[text()="添加下级"]')

    # 列表下级机构名称标签
    subordinate_name1 = (By.XPATH, '//div[@id="pane-first"]/div/div[3]//div[text()="成长小学"]/../../td[2]/div/span/span[2]')

    # 编辑按钮定位点击
    edit_button = (By.XPATH, '//div[@id="pane-first"]/div/div[4]//span[text()="成长小学"]/../../../..//span[text()="编辑"]')

    # 编辑后的成长小学1名称定位
    edited_name = (By.XPATH, '//div[@id="pane-first"]/div[1]/div[3]//span[text()="成长小学1"]')

    # 成长小学删除按钮
    delete_school1 = (By.XPATH, '//div[@id="pane-first"]/div/div[3]/table/tbody//span[text()="成长小学1"]/../../../..//span[text()="删除"]')

    # 橙子中学删除按钮
    delete_school2 = (By.XPATH, '//div[@id="pane-first"]/div/div[3]/table/tbody//span[text()="橙子中学"]/../../../..//span[text()="删除"]')

    # 黄山小学删除按钮
    delete_school3 = (By.XPATH, '//div[@id="pane-first"]/div/div[3]/table/tbody//span[text()="橙子中学"]/../../../..//span[text()="删除"]')
